package com.fwj.auth.entity.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.util.Date;

/**
 * @Author: fwj
 * @Data: 2022/4/22 20:50
 * @Version 1.0
 * @Description:  库： museum0base_xxx(环境)     表名： user_extend_account
 */

@ApiModel(value="com.fwj.auth.entity.UserExtendAccount")
@Table( name = "user_extend_account")
@Data
public class UserExtendAccount {

    /**
     * 主键
     */
    @Id
    @Column(name = "id")
    @GeneratedValue(generator = "JDBC")
    @ApiModelProperty(value="主键")
    private Long id;

    /**
     * user_base_info表主键ID
     */
    @Column(name = "user_id")
    @ApiModelProperty(value="user_base_info表主键ID")
    private Long userId;


    /**
     * 账户
     */
    @Column(name = "value")
    @ApiModelProperty(value="账户")
    private String value;

    /**
     * 扩展账户类型
     */
    @Column(name = "extend_type")
    @ApiModelProperty(value="扩展账户类型")
    private String extendType;

    /**
     * 扩展账号具体类型
     */
    @Column(name = "extend_type_sub")
    @ApiModelProperty(value="扩展账号具体类型")
    private String extendTypeSub;

    /**
     * 扩展账户类型描述
     */
    @Column(name = "extend_desc")
    @ApiModelProperty(value="扩展账户类型描述")
    private String extendDesc;

    /**
     * 是否是登录账号
     */
    @Column(name = "is_login")
    @ApiModelProperty(value="是否是登录账号")
    private Boolean isLogin;

    /**
     * 密码
     */
    @Column(name = "password")
    @ApiModelProperty(value="密码")
    private String password;


    /**
     * 创建时间
     */
    @Column(name = "create_time")
    @ApiModelProperty(value="创建时间")
    @Temporal(TemporalType.TIMESTAMP)
    private Date createTime;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    @ApiModelProperty(value="更新时间")
    @Temporal(TemporalType.TIMESTAMP)
    private Date updateTime;

    /**
     * 用户账号状态
     */
    @Column(name = "status")
    @ApiModelProperty(value="用户账号状态")
    private String status;

    private static final long serialVersionUID = 1249651255445L;

}
